<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
${aier_doctype}
<html <s:property value="aier-html-xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<title>${aier_title}</title>
<link rel="stylesheet" href="${aier_css_url}${aier_jqui_css}ui.css" />
<link rel="Stylesheet" href="${aier_css_url}jq/jq.css" />
<link rel="stylesheet" href="${aier_css_url}jp/msg.css" />
<link rel="stylesheet" href="${aier_css_url}social/module/reset.css" />
<link rel="stylesheet" href="${aier_css_url}social/classes/common.css" />
<link rel="stylesheet" href="${aier_css_url}social/classes/cmanage.css" />


<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
<script type="text/javascript" src="${aier_js_url}${aier_jqui_js}ui.js"></script>
<script type="text/javascript" src="${aier_js_url}97/WdatePicker.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/msg.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/cn.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/jq.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/ja.js"></script>
<script type="text/javascript" src="${aier_js_url}jc/cj.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/block.js"></script>
<script type="text/javascript"
	src="${aier_js_url}social/classes/cinoutpark.js"></script>
<script type="text/javascript">
	var global_suffix = "${aier_suffix}", global_url = "${aier_url}", global_uri = "${aier_uri}", global_urijs = "${aier_urijs}", 
	 global_sid = "${sid}",global_cid = "${cid}",global_userin_url = "${video_user_in_url}",global_userout_url = "${video_user_out_url}"; 
</script>
</head>
<!-- 班级管理-学生进出园记录 -->
<body>
	<!-- 顶栏 -->
	<s:action name="userhomecomm_homeHead" namespace="/user"
		executeResult="true"></s:action>

	<!-- 正文 -->
	<div id="hfContent" class="ar-content">
		<div class="content-main">
			<!-- 班级名称栏 -->
			<s:action name="ccomm_classesMTitle" namespace="/classes"
				executeResult="true"></s:action>
			<div class="main-content wrap-bg clearfix">
				<!-- 左侧栏 -->
				<s:action name="ccomm_classesMLeft" namespace="/classes"
					executeResult="true"></s:action>
				<!-- 右侧内容 -->
				<div class="ae-right">
					<div class="right-main">
						<div class="right-main-top">
							<div class="binfo-title">
								<span>学生进出园记录</span>
							</div>
							<div class="right-line"></div>
						</div>
						<div class="right-main-c">
							<div class="info-tab01">
								<table>
									<tr>
										<th class="gray6">起始时间：</th>
										<td><input type="text" id="startTime" class="PY-input"
											onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" />
										</td>
										<th class="gray6">结束时间：</th>
										<td><input type="text" id="EndTime" class="PY-input"
											onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" />
										</td>
									</tr>
									<tr>
                                        <th class="gray6">学生姓名：</th>
                                        <td><input type="text" id="sname" class="PY-input" />
                                        </td>
                                        <th class="gray6"></th>
                                        <td style="width:270px;" align="right"><a id="b_hmsel"
                                            onclick="search_duy()" href="javascript:;"
                                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only fr"
                                            role="button" aria-disabled="false"><span
                                                class="ui-button-text">查询</span> </a>
                                            <a id="b_hmsel"
                                            onclick="downExcle()" href="javascript:;"
                                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only fr"
                                            role="button" aria-disabled="false"><span
                                                class="ui-button-text">导出Excel</span> </a></td>
                                    </tr>

								</table>
							</div>
						</div>

						<div class="right-main-down">
							<div class="down-line"></div>

							<div class="down-inre">
								<table id="inOutParkInfo"></table>
								<div id="inOutParkPage"></div>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>
		<!-- footer copyright -->
		<s:action name="userhomecomm_homeFooter" namespace="/user"
			executeResult="true"></s:action>
		<!-- /footer copyright -->
	</div>


</body>
<script type="text/javascript">
	function search_duy(){
		var dayBeginValue = $('#startTime').val();
		var dayEndValue = $('#EndTime').val();
		var sname = $('#sname').val();
		jQuery("#inOutParkInfo")
				.jqGrid(
						'setGridParam',
						{
							url : "${aier_url}${aier_urijs}classessinoutpark_searchUIIList${aier_suffix}?"
									+ "cid="+global_cid
									+ "&dayBeginValue="
									+ dayBeginValue
									+ "&dayEndValue="
									+ dayEndValue
									+ "&sname="
									+ sname,
							page : 1
						}).trigger("reloadGrid");
	}
	//下载Excle
    function downExcle() {
        var dayBeginValue = $('#startTime').val();
        var dayEndValue = $('#EndTime').val();
        var cid = $('#classid  option:selected').val();
        var sname = $('#sname').val();
        window.open("${aier_url}${aier_uri}classessinoutpark_down${aier_suffix}?cid=" + global_cid + "&dayBeginValue=" + dayBeginValue
                + "&dayEndValue=" + dayEndValue + "&sname=" + sname);
    }
</script>
</html>